home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / MAKEFILE < prev    next >
Text File  |  1992-09-19  |  2KB  |  86 lines

  1. #
  2. # Makefile for NFF stuff using Zortech C++.
  3. #
  4. # The typical command line to build an executable is:
  5. #
  6. #    make balls.exe
  7. #
  8. # If you have a different compiler, just note the meaning of the
  9. # various flags and set appropriately.
  10. #
  11.  
  12. #
  13. # Use these definitions with Zortech C
  14. #
  15. CC    =ztc
  16. #
  17. # Memory model switches for real mode and protected mode
  18. #
  19. #  l    Flag for real mode large model
  20. #  z    Flag for 286 protected mode
  21. #
  22. MDL    =l
  23. #MDL    =z
  24. #
  25. # Link options
  26. #
  27. # /M     Generates a map file
  28. # /F     Farcall (register based parameter passing)
  29. # /PACKC Packs the execuatble code
  30. # /CO    Generates a CodeView debugger compatible executable
  31. #
  32. LINK    =blink /M /F /PACKC
  33. #LINK    =blink /M /CO
  34. #
  35. # Compiler switches
  36. #
  37. # -A     Enforces ANSI C
  38. # -r     Enforces function prototyping
  39. # -2     Generates 80286 specific code
  40. # -f     Generates inline 80x87 code
  41. # -s     Generates stack checking code
  42. # -g     Generates debugging code (not useful in the protected model)
  43. # -o     Turns on optimization
  44. # -br    Uses protected mode versions of the compiler components
  45. #
  46. CFLAGS    =-m$(MDL)
  47. OPTFLG    =-o
  48. PROTCC    =-br
  49.  
  50. # Rule to compile c progs into obj's
  51. .c.obj:
  52.     $(CC) $(CFLAGS) -c $<
  53.  
  54. lib.obj: lib.c lib.h
  55.  
  56. balls.exe: lib.obj balls.obj
  57.    $(CC) $(CFLAGS) -oballs balls.obj lib.obj
  58.  
  59. coil.exe: lib.obj coil.obj
  60.    $(CC) $(CFLAGS) -ocoil coil.obj lib.obj
  61.  
  62. gears.exe: lib.obj gears.obj
  63.    $(CC) $(CFLAGS) -ogears gears.obj lib.obj
  64.  
  65. hilbert.exe: lib.obj hilbert.obj
  66.    $(CC) $(CFLAGS) -ohilbert hilbert.obj lib.obj
  67.  
  68. mountain.exe: lib.obj mountain.obj
  69.    $(CC) $(CFLAGS) -omountain mountain.obj lib.obj
  70.  
  71. rings.exe: lib.obj rings.obj
  72.    $(CC) $(CFLAGS) -orings rings.obj lib.obj
  73.  
  74. sphcoil.exe: lib.obj sphcoil.obj
  75.    $(CC) $(CFLAGS) -osphcoil sphcoil.obj lib.obj
  76.  
  77. tetra.exe: lib.obj tetra.obj
  78.    $(CC) $(CFLAGS) -otetra tetra.obj lib.obj
  79.  
  80. tree.exe: lib.obj tree.obj
  81.    $(CC) $(CFLAGS) -otree tree.obj lib.obj
  82.  
  83. twistwir.exe: lib.obj twistwir.obj
  84.    $(CC) $(CFLAGS) -otwistwir twistwir.obj lib.obj
  85.  
  86.